﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Information/Information.master" AutoEventWireup="True" CodeBehind="EnglishEdit.aspx.cs" Inherits="Web.Information.WebForm4" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<li><a href="StuInformation.aspx">个人信息</a></li>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div style="padding:20px">
        <asp:Label ID="Label_englishlist" runat="server" Text="英语能力列表：" CssClass="ContentLabel" Width="100px"></asp:Label>
        <asp:GridView ID="GridView_English" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="english_level" HeaderText="英语能力" />
                <asp:BoundField DataField="english_time" HeaderText="获得时间" 
                    DataFormatString="{0:d}" />
                <asp:BoundField DataField="english_mark" HeaderText="英语成绩" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton ID="GridViewButton_Edit" runat="server" 
                            OnClick="GridViewButton_Edit_Click" CommandArgument='<%# Eval("id") %>' 
                            ImageUrl="~/img/Control/Edit.gif" CausesValidation="False"/>
                        <asp:ImageButton ID="GridViewButton_Delete" runat="server" 
                            OnClick="GridViewButton_Delete_Click" CommandArgument='<%# Eval("id") %>'  
                            ImageUrl="~/img/Control/Delete.gif" CausesValidation="False"/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </div>
        <br/>
        <div style="border:solid 1px green">
        <asp:Label ID="Label_EnglishID" runat="server" Text="" Visible="false"></asp:Label>
        <table>
            <tr>
                <td>
                    <asp:Label ID="Label_englishlevel" runat="server" Text="英语能力：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="DropDownList_englishlevel" runat="server" 
                        AutoPostBack="True" 
                        onselectedindexchanged="DropDownList_englishlevel_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Label ID="Label_englishtime" runat="server" Text="获得时间：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_englishtime" runat="server" CssClass="ContentTextBox" 
                        ToolTip="例：2008-10-10"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox_englishtime">*</asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="时间输入格式不正确" ControlToValidate="TextBox_englishtime" 
                        ValidationExpression="^\d{4}-\d{1,2}-\d{1,2}$">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label_nolist" runat="server" Text="其他英语能力：" CssClass="ContentLabel" Visible="false"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_nolist" runat="server" CssClass="ContentTextBox" Visible="false"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator_nolist" runat="server" 
                        ControlToValidate="TextBox_nolist" Enabled="false">*</asp:RequiredFieldValidator>
                </td>
                <td colspan="4">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </td></tr>
            <tr>
                <td>
                    <asp:Label ID="Label_englishmark" runat="server" Text="证书成绩：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="TextBox_englishmark" runat="server" CssClass="ContentTextBox"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox_englishmark">*</asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                        ErrorMessage="成绩输入格式不正确" ControlToValidate="TextBox_englishmark" 
                        ValidationExpression="^100|(^([1-9]{0,1})([0-9]{1})(\.[0-9])?)$">*</asp:RegularExpressionValidator>
                </td>
            </tr>
            
                <tr>
                <td>
                    <asp:Label ID="Label_EditInformation1" runat="server" Text="所修改的记录信息：" CssClass="ContentLabel"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="Label_EditInformation2" runat="server" Text="" CssClass="ContentLabel" Width="150px"></asp:Label></td>
                </tr>
            
        </table>
        <asp:ImageButton ID="ImageButton_Cancel" runat="server" 
            ImageUrl="~/img/Control/Cancel.gif" onclick="ImageButton_Cancel_Click" 
            CausesValidation="False" />
        <asp:ImageButton ID="ImageButton_Add" runat="server" 
            ImageUrl="~/img/Control/Add.gif" onclick="ImageButton_Add_Click" />
        <asp:ImageButton ID="ImageButton_Delete" runat="server"  
            ImageUrl="~/img/Control/Delete.gif" OnClick="ImageButton_Delete_Click" 
            CausesValidation="False"/>
        <asp:ImageButton ID="ImageButton_Edit" runat="server" ImageUrl="~/img/Control/Edit.gif" OnClick="ImageButton_Edit_Click"/>
        <asp:Label ID="Label_result" runat="server" Text="" CssClass="Label_ReturnInfo"></asp:Label>
        
    </div>
</asp:Content>
